import { request } from '@/utils/request';
export function getMessageList(data) {
  return request({
    url: `/manage/admin/message/messageList`,
    method: 'post',
    data,
  });
}
export function getUnreadNum() {
  return request(
    {
      url: `/manage/admin/message/unreadNum`,
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
}
export function readMsg(id: string) {
  return request(
    {
      url: `/manage/admin/message/readMsg/${id}`,
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
}
